﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kinect;

namespace KinectApplication
{
    public static class MouseInput
    {
        public static void Move(List<Player> players)
        {
            if (players.Count > 0)
            {
                Player player = players[0];

                if (player.RightHand.IsTracked)
                {
                    int X = (int)player.RightHand.X;
                    int Y = (int)player.RightHand.Y;

                    NativeMethods.SendMouseInput(X, Y, (int)System.Windows.SystemParameters.PrimaryScreenWidth, (int)System.Windows.SystemParameters.PrimaryScreenHeight, false);
                }
            }
        }
    }
}
